package 练习2;

//数组条件求和

public class test06 {
    public static void main(String[] args) {
        int[] arr = {68, 27, 95, 88, 171, 996, 51, 210};
        int sum =0;
        for (int x = 0; x < arr.length; x++) {
            if (arr[x] % 10 != 7 && arr[x] / 10 % 10 != 7 && arr[x] % 2 ==0){
                sum+=arr[x];
            }
        }
        System.out.println(sum);
    }

}
